package com.home.Entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Proxy(lazy=false)
@Table(name="CTQUYENSUDUNG")
public class CTQuyenSuDung {
	@Id
	@Column(name = "CTQ_MASO")
	private long maSo;
	
	@ManyToOne()
	@JoinColumn(name = "CTQ_TAIKHOAN")
	private TaiKhoan taiKhoan;
	
	@ManyToOne()
	@JoinColumn(name = "CTQ_QUYEN")
	private QuyenSuDung quyenSuDung;
	
	@Column(name="CTQ_GHICHU")
	private String ghiChu;

	
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	public TaiKhoan getTaiKhoan() {
		return taiKhoan;
	}
	public void setTaiKhoan(TaiKhoan taiKhoan) {
		this.taiKhoan = taiKhoan;
	}
	public QuyenSuDung getQuyenSuDung() {
		return quyenSuDung;
	}
	public void setQuyenSuDung(QuyenSuDung quyenSuDung) {
		this.quyenSuDung = quyenSuDung;
	}
	
}